<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>TinyButStrong</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="tbs_us_examples_0styles.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
function m_Select(x) {
	window.location = '[var..script_name]?empty=' + x ;
}
</script>
</head>
<body>
<p align="center" class="title-page">Example of Magnet tags</p>
<table width="500" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td><p>A Magnet tag is an Html tag linked to a TBS field. The Magnet tag is deleted when the field is deleted, i.e. when the field is null or empty string. A Magnet tag is defined using parameter <span class="text-prm">magnet</span>. The type of the tag (single or opening-closing) and its position are defined using parameter <span class="text-prm">mtype</span>. <br>
      </p></td>
  </tr>
</table>
<br>
<table border="0" align="center" cellpadding="2" cellspacing="2">
  <tr valign="top">
    <td colspan="3"><form action="" method="post" name="frm_choice" id="frm_choice">
        <input name="r_empty" type="radio" value="0" onClick="m_Select(0)" [var.empty;if [val]=0;then 'checked';else '']>
        Non-empty values
        <input name="r_empty" type="radio" value="1" onClick="m_Select(1)" [var.empty;if [val]=1;then 'checked';else '']>
        Empty values<br>
    </form></td>
  </tr>
  <tr valign="top">
    <td width="90" class="title-section2">Parameter</td>
    <td width="270" class="title-section2">Value</td>
    <td width="100"><span class="title-section2">Display</span></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr valign="top">
    <td class="text-example2">magnet=a</td>
    <td>$url = '[var.url]'</td>
    <td bgcolor="#8FC2ED">Link: <a href="http://[var.url;magnet=a]" target="_blank">Site TBS</a></td>
  </tr>
  <tr valign="top">
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr valign="top">
    <td class="text-example2">magnet=a;mtype=m+m</td>
    <td> $url = '[var.url]'</td>
    <td bgcolor="#8FC2ED"> Link: <a href="http://[var.url;magnet=a;mtype=m+m]" target="_blank">Site TBS</a></td>
  </tr>
  <tr valign="top">
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr valign="top">
    <td class="text-example2">magnet=img;mtype=m*</td>
    <td> $image = '[var.image]'</td>
    <td height="20" bgcolor="#8FC2ED"> Image: <img src="[var.image;magnet=img;mtype=m*]" width="14" height="14"></td>
  </tr>
  <tr valign="top">
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr valign="top">
    <td class="text-example2">magnet=br; mtype=*m</td>
    <td> $line2 = '[var.line2]'</td>
    <td bgcolor="#8FC2ED"> Address:<br>
      -------- <br>
      [var.line1;magnet=br;mtype=*m]<br>
[var.line2;magnet=br;mtype=*m]<br>
--------</td>
  </tr>
</table>
</body>
</html>
